<?php
/**
 * @Author: Administrator
 * @Date:   2014-08-11 23:10:22
 * @Last Modified by:   Administrator
 * @Last Modified time: 2014-08-12 01:01:30
 */

/**
* 显示公司
*/
class PosControl extends Control
{
	
	public function show()
	{
		$city = K('City');
		$pos = K('PosCate');
		#取出职位信息
		$ComPos = K('ComPos');
		$cpid = Q('get.cpid',0,'intval');
		$posData = $ComPos->get_id_pos($cpid);
		$posData['cityname']=$city->city[$posData['city_cityid']];
		$posData['posname']=$pos->pos[$posData['cate_posid']];
		// $this->assign('data',$data);
		#取出公司信息
		$ComShowView = K('ComShowView');
		$where = array('cbid'=>Q('get.cbid',0,'intval'));
		$data = $ComShowView->get_one($where);
		$data['cityname']=$city->city[$data['city_cityid']];

		#取出所有职位
		$res = $ComShowView->get_all($where);

		// P($res);

		$this->assign('res',$res);
		$this->assign('posData',$posData);
		$this->assign('data',$data);
		// p($data);
		$this->display();
	}
}